#!/bin/sh

set -e

if [ -z "${1}" ]; then
    exit 1;
fi

for name in ${1}/kernel/plat/*/defconfig; do
    if [ "$name" = "${1}/msys/plat/*/defconfig" ]; then
	exit 1;
    fi
    name=${name%/defconfig}
    name=${name##*/}
    echo $name
done
